package com.ruicar.afs.cloud.afscase.loangpsruleinfo.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruicar.afs.cloud.common.core.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author: yk.Li
 * @date 2020-07-22 05:37:27
 * @description GPS安装规则配置表 实体类
 */
@Data
@Accessors(chain = true)
@TableName(value = "loan_gps_rule_info", autoResultMap = true)
public class LoanGpsRuleInfo extends BaseEntity<LoanGpsRuleInfo> {

    /**
     * 规则id
     */
    @ApiModelProperty("规则id")
    @JsonSerialize(using = ToStringSerializer.class)
    @JSONField(serializeUsing = com.alibaba.fastjson.serializer.ToStringSerializer.class)
    private Long ruleId;
    /**
     * GPS安装规则类型
     */
    @ApiModelProperty("GPS安装规则类型")
    private String gpsRuleName;
    /**
     * 规则描述
     */
    @ApiModelProperty("规则描述")
    private String gpsRuleDesc;
    /**
     * 是否启用
     */
    @ApiModelProperty("是否启用")
    private String isEnable;
    /**
     * 是否同步
     */
    @ApiModelProperty("是否同步")
    private String isSynchronous;
    /**
     * 同步时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("同步时间")
    private Date synchronousTime;
    /**
     * 生效时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("生效时间")
    private Date effectTime;
    /**
     * 失效时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("失效时间")
    private Date failureTime;

}
